package com.woniuxy02;

import java.util.Scanner;

/**
 * @author 作者
 * @create 2025-05-22 14:06
 */
public class Test01 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        //输入字符：输入字符串，charAt(0)获取字符串的第一个字符
        System.out.println("输入字符性别");
        char gender = sc.next().charAt(0);
        System.out.println(gender);
        System.out.println("输入字符串性别");
        String sex = sc.next();
        System.out.println(sex);
    }
}
